package com.matongxue.springboot;

public class Person {
	
	private String name;
	private int age;
	
	static {
		System.out.println(" 静态方法 1");
	}
	
	public Person() {
		System.out.println(" create Person");
	}

	public Person(String name) {
		System.out.println(" create Person");
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public int getAge() {
		return age;
	}
	

	public void doSomethings() {
		System.out.println(name);
	}

	public static  void eat() {
		System.out.println("---");
	}
	
	
	
	
	

}
